//
//  PKMarketViewControllerCell.swift
//  Panku
//
//  Created by mac on 2017/5/28.
//  Copyright © 2017年 Monster. All rights reserved.
//

import UIKit

class PKMarketViewControllerCell: PKBaseTableViewCell {

    //MARK: - UI
    lazy var displayView = UIImageView()
    lazy var titleLabel = UILabel()
    lazy var descLabel = UILabel()
    
    override func setupCell() {
        contentView.addSubview(displayView)
        contentView.addSubview(titleLabel)
        contentView.addSubview(descLabel)
        
        //允许多行
        descLabel.numberOfLines = 0
        
        displayView.snp.makeConstraints { (make) in
            make.top.equalTo(contentView.snp.top).offset(12)
            make.left.equalTo(contentView.snp.left).offset(12)
            make.right.equalTo(contentView.snp.right).offset(12)
            make.height.equalTo(200)
        }
        
        titleLabel.snp.makeConstraints { (make) in
            make.left.equalTo(displayView.snp.left)
            make.right.equalTo(displayView.snp.right)
            make.top.equalTo(displayView.snp.bottom).offset(12)
        }
        
        descLabel.snp.makeConstraints { (make) in
            make.left.equalTo(titleLabel.snp.left)
            make.right.equalTo(displayView.snp.right)
            make.top.equalTo(titleLabel.snp.bottom).offset(5)
        }
    }

}
